package cn.hackcloud.annotation.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

import cn.hackcloud.annotation.aop.LogAspect;
import cn.hackcloud.annotation.aop.MathCalculator;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 
 * 描述类作用
 * @author Created by laijun on 2018/11/30
 */
@EnableAspectJAutoProxy
@Configuration
@EnableTransactionManagement
public class MainConfigAop {
	@Bean
	public MathCalculator mathCalculator() {
		return new MathCalculator();
	}

	@Bean
	public LogAspect logAspect() {
		return new LogAspect();
	}
}
